package com.pj.point.adapter;

import android.widget.BaseAdapter;

import java.util.List;

public abstract class MyAdapter extends BaseAdapter {

    List data;

    public MyAdapter(List data) {
        this.data = data;
    }

    @Override
    public int getCount() {
        return data.size();
    }

    @Override
    public Object getItem(int i) {
        return data.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }
}
